package com.derbysoft.synxisadapter.commons.repository;

import com.derbysoft.synxisadapter.commons.model.User;

import java.util.List;

public interface UserRepository {
    User findByName(String name);

    List<User> listAll();

    void saveRoles(String userName, String[] roleNames);

    void update(User user);

    User create(String userName);

    void disable(User user);

    void enable(User user);
}
